<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="/Admin/tpl/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/Admin/tpl/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="/Admin/tpl/Css/style.css" />
    <script type="text/javascript" src="/Admin/tpl/Js/jquery.js"></script>
    <script type="text/javascript" src="/Admin/tpl/Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="/Admin/tpl/Js/bootstrap.js"></script>
    <script type="text/javascript" src="/Admin/tpl/Js/ckform.js"></script>
    <script type="text/javascript" src="/Admin/tpl/Js/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
		table.definewidth td{ text-indent:10px;}
		table.definewidth .dingji td{ text-indent:0;}
		.dingji{ font-weight:bold;}

    </style>
</head>
<body>
<form class="form-inline definewidth m20" action="index.html" method="get">
    栏目名称：
    <input type="text" name="menuname" id="menuname"class="abc input-default" placeholder="" value="">&nbsp;&nbsp; 
    <button type="submit" class="btn btn-primary">查询</button>&nbsp;&nbsp; <button type="button" class="btn btn-success" id="addnew">新增栏目</button>
</form>
<table class="table table-bordered table-hover definewidth m10">
    <thead>
    <tr>
        <th>栏目标题</th>
        <th>栏目编号</th>
        <th>上级栏目</th>
        <th>栏目排序</th>
        <th>栏目类型</th>
        <th>管理操作</th>
    </tr>
    </thead>
		<!--
	     <tr>
            <td colspan="6">系统栏目</td>
        </tr>
		<Volist name='xtlanmu' id='vo'>
        <tr>
                <td>{$vo.lanmu_name}</td>
                <td>{$vo.lanmu_id}</td>
                <td><if condition="$vo[toplanmu_id] eq '' or $vo[toplanmu_id] eq '0'">顶级栏目</if></td>
                <td>{$vo.paixu}</td>
                <td>系统栏目</td>
                <td><a href="{:U('Menu/edit')}">编辑</a></td>
            </tr>
		</Volist>
		-->
		<tr class='dingji'>
            <td colspan="6">单页栏目</td>
        </tr>
       <Volist name='dylanmu' id='vo'>
        <tr <if condition="$vo[toplanmu_id] eq '' or $vo[toplanmu_id] eq '0'"> class='dingji'</if>>
                <td>{$vo.lanmu_name}</td>
                <td>{$vo.lanmu_id}</td>
                <td>{$vo.toplanmu_name}</td>
                <td>{$vo.paixu}</td>
                <td>单页栏目</td>
                <td><if condition="$vo[toplanmu_id] neq '' and $vo[toplanmu_id] neq '0'"><a href="{:U('Danye/index',array('id'=>$vo[lanmu_id]))}">内容管理</a></if>&nbsp;&nbsp;&nbsp;&nbsp;<a href="{:U('Menu/edit',array('lanmu_id'=>$vo[lanmu_id]))}">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="{:U('Menu/del',array('lanmu_id'=>$vo[lanmu_id]))}">删除</a></td>
            </tr>
		</Volist>
		<tr class='dingji'>
            <td colspan="6">文章列表</td>
        </tr>
       <Volist name='wzlanmu' id='vo'>
        <tr <if condition="$vo[toplanmu_id] eq '' or $vo[toplanmu_id] eq '0'"> class='dingji'</if>>
                <td>{$vo.lanmu_name}</td>
                <td>{$vo.lanmu_id}</td>
                <td>{$vo.toplanmu_name}</td>
                <td>{$vo.paixu}</td>
                <td>文章列表</td>
                <td><a href="{:U('Menu/edit',array('lanmu_id'=>$vo[lanmu_id]))}">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="{:U('Menu/del',array('lanmu_id'=>$vo[lanmu_id]))}">删除</a></td>
            </tr>
		</Volist>
		</table>

</body>
</html>
<script>
    $(function () {
        

		$('#addnew').click(function(){

				window.location.href="{:U('Menu/add')}";
		 });


    });
	
</script>